Inference and Evolution of TypeScript Declaration Files
نویسندگان
چکیده
TypeScript is a typed extension of JavaScript that has become widely used. More than 2 000 JavaScript libraries now have publicly available TypeScript declaration files, which allows the libraries to be used when programming TypeScript applications. Such declaration files are written manually, however, and they are often lagging behind the continuous development of the libraries, thereby hindering their usability. The existing tool tscheck is capable of detecting mismatches between the libraries and their declaration files, but it is less suitable when creating and evolving declaration files. In this work we present the tools tsinfer and tsevolve that are designed to assist the construction of new TypeScript declaration files and support the co-evolution of the declaration files as the underlying JavaScript libraries evolve. Our experimental results involving major libraries demonstrate that tsinfer and tsevolve are superior to tscheck regarding these tasks and that the tools are sufficiently fast and precise for practical use.
منابع مشابه
Mixed Messages: Measuring Conformance and Non-Interference in TypeScript
TypeScript participates in the recent trend among programming languages to support gradual typing. The DefinitelyTyped Repository for TypeScript supplies type definitions for over 2000 popular JavaScript libraries. However, there is no guarantee that implementations conform to their corresponding declarations. We present a practical evaluation of gradual typing for TypeScript. We have developed...
متن کاملMixed Messages: Measuring Conformance and Non-Interference in TypeScript (Artifact)
In the paper Mixed Messages: Measuring Conformance and Non-Interference in TypeScript we present our experiences of evaluating gradual typing using our tool TypeScript TPD. The tool, based on the polymorphic blame calculus, monitors JavaScript libraries and TypeScript clients against the corresponding TypeScript definition. Our experiments yield two conclusions. First, TypeScript definitions ar...
متن کاملبیانیهی هلسینکی ویرایش 2008، ترجمهی فارسی و چالشهای آن
The Declaration of Helsinki, the most creditable ethical guideline for medical research on human subjects, has been updated 8 times since its establishment and the last revision was in 2008. Researchers, medical research subjects, authors, members of ethics committees, and editors of medical journals must be informed of the tenets of the Helsinki declaration in order to improve achievements of ...
متن کاملبررسی سیر تغییرات بیانیهی هلسینکی و تفاوتهای ویرایش سال 2008 نسبت به 2004
The Declaration of Helsinki, the most creditable ethical guideline for medical research on human subjects, has been updated 8 times since its establishment and the last revision was in 2008. Researchers, medical research subjects, authors, members of ethics committees, and editors of medical journals must be informed of the tenets of the Helsinki declaration in order to improve achievements of ...
متن کاملReduce the maximum scour depth downstream of Flip Bucket Spillway through the spillway geometry optimization (study released spillway dam Kurdistan)
The Performance of shooting pool, in addition to the quality of the area in which the flow collides with it, depends to the height of the jet drop, the angle of the water flow, the depth of the jet and the concentration of the jet. By increasing the height of the jet drop, the fall velocity increases and subsequently the jetchr('39')s energy will be more intrusive. Different collision area from...
متن کامل